<%--
   help
   Copyright (c) 2013 ISPERP
   Version : 1.0.0
 --%>
<%@ tag language="java" pageEncoding="UTF-8"
	deferredSyntaxAllowedAsLiteral="false" trimDirectiveWhitespaces="true"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ attribute name="id" required="true" type="java.lang.String"
	description="唯一标识."%>
<%@ attribute name="title" required="false" type="java.lang.String"
	description="标题"%>
<c:set var="title" value="${empty title?'操作帮助':title }"></c:set>
<span id="btn-${id }" title="${title }" class="nui-ico nui-ico-help"></span>
<div id="${id}" title="${title}" class="nui-helpinfo">
	<b class="nui-layer-arr"></b> <b class="nui-layer-close">关闭</b>
	<jsp:doBody />

</div>
<script type="text/javascript">
	$("#btn-${id },#${id}").click(function(e) {
		var $hitem = $("#${id}");
		var d = $hitem.css("display");
		if (d && d != "none") {
			$hitem.hide();
		} else {
			var x = e.pageX - $(document).scrollLeft() - 24;
			$hitem.css({
				left : x + "px"
			});
			$hitem.show();
		}
	});
</script>



